package cmd

import (
	"math/rand"
	"time"
)

func randOver(min, max int) int {
	r1 := rand.New(rand.NewSource(time.Now().UnixNano()))
	return r1.Intn(max-min+1) + min
}

// [0, max)
func Range(max int) []int {
	a := make([]int, max)
	for i := range a {
		a[i] = i
	}
	return a
}

// [min, max)
func RangeOver(min, max int) []int {
	a := make([]int, max-min)
	for i := range a {
		a[i] = min + i
	}
	return a
}
